#ifndef MAINWINDOW_H
#define MAINWINDOW_H
 #include <QActionGroup>
#include <QMainWindow>
class ActionMenus;

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    ActionMenus * actionMenus;

    MainWindow(QWidget *parent = 0);
    ~MainWindow();

    Ui::MainWindow * getUI();
    QActionGroup * actionGroup;

    void remplir();

protected:
    void changeEvent(QEvent *e);
    void keyPressEvent(QKeyEvent *);

private:
    Ui::MainWindow * ui;

    void modificationNoeudCourant();
    void closeEvent(QCloseEvent *event);

public slots:
    void annuler();

private slots:
    void changeZoom(int pourcentage);
    void changeNom();
    void changeCategorie();
    void changeType();
    void changeFrequence();
    void on_repeatable_clicked();
    void on_optionnel_clicked();
    void afficherAide();
};

#endif // MAINWINDOW_H
